package com.zgw.his.emr.model;

import java.net.URL;
import java.util.ArrayList;
import java.util.List;

/**
 * 模板记录
 * */
public class TemplateRecord extends MedicalRecord {
	private String identifier;// 模板标识
	private String version;// 版本号
	private URL templateUrl;// 模板路径

	public URL getTemplateUrl() {
		return templateUrl;
	}

	public void setTemplateUrl(URL templateUrl) {
		this.templateUrl = templateUrl;
	}

	public List<DetailRecord> getDetails() {
		List<DetailRecord> record = new ArrayList<DetailRecord>();
		for (MedicalRecord r : getChilds()) {
			record.add((DetailRecord) r);
		}
		return record;
	}

	public String getIdentifier() {
		return identifier;
	}

	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

}
